package com.huacheng.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.huacheng.cms.model.Admin;

@Repository
public interface AdminMapper {
	int deleteByPrimaryKey(Long adminid);

	int deleteBySelective(@Param("record") Admin record);

	int insertSelective(Admin record);

	Admin selectByPrimaryKey(Long adminid);

	int updateByPrimaryKeySelective(Admin record);

	int selectBySelectiveCount(Admin record);

	List<Admin> selectBySelective(@Param("record") Admin record, @Param("offset") long offset, @Param("rows") long rows);

	Admin getAdminByEmail(@Param("email") String email);
}